﻿using House.DTO;
using House.IService;
using House.Service.Entities;
using System.Collections.Generic;
using System.Linq;

namespace House.Service
{
    public class CityService : BaseService<T_Cities>, ICityService
    {
        public CityService() : base(new Model())
        {

        }
        public List<CityDTO> GetList()
        {
            return GetList(p => true).Select(p => new CityDTO()
            {
                Id = p.Id,
                Name = p.Name
            }).ToList();
        }
    }
}
